#pragma once
#include <iostream>
#include <boost/asio.hpp>
#include "../connection/connection.h"

namespace umtl
{
	typedef boost::asio::ip::tcp tcp;

	class tcp_client
	{
	public:
		tcp_client( std::string const & host, std::string const & port
			, tcp_connection::read_handler_t read_handler, tcp_connection::close_handler_t close_handler );

		void send( char const * data, size_t len );

	private:
		tcp_connection::pointer connection_;
	};
}